sdx_upgrade

Configuration for Upgrade SDX resource.

Read/write properties

mail_profiles<String>

Comma separated list of Mail profiles.

scheduleTimesEpoch<String>

Schedule time epoch (string representation of 11 digit numbers)..

name<String>

Name.
Maximum length = 128

is_remote_download<Boolean>

True if upgrade is remote download instead of direct upload from NetScaler Console.

device_groups<String[]>

Device Group Array on which for which job is run.

do_cleanup<Boolean>

True, if user wants to clean the image files once upgrade is completed successfully.

sdx_ip_address_arr<String[]>

List of NetScaler SDX IP Address.

scheduleId<String>

scheduleId is used to refer maintenaince schedule task.

slack_profile<String>

Slack profile.

image_name<String>

image_name.
Minimum length = 1
Maximum length = 128

Read only properties

task_id<String>

Task ID.

Operations

NOTE: In request payload, Mandatory parameters are marked red and bold.

The following parameters can be used in the nitro request :

onerror   <String_value>

Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE

upgrade

upgrade

URL:https://<MGMT-IP>/nitro/v2/config/sdx_upgrade?action=upgrade&onerror=<String_value>

HTTPS Method:POST

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"sdx_upgrade": {
      "image_name":<String_value>,
      "device_groups":<String_value[]>,
      "sdx_ip_address_arr":<String_value[]>,
      "slack_profile":<String_value>,
      "scheduleTimesEpoch":<String_value>,
      "mail_profiles":<String_value>,
      "is_remote_download":<Boolean_value>,
      "scheduleId":<String_value>,
      "do_cleanup":<Boolean_value>,
      "name":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "sdx_upgrade":[{
      "mail_profiles":<String_value>,
      "scheduleTimesEpoch":<String_value>,
      "task_id":<String_value>,
      "name":<String_value>,
      "is_remote_download":<Boolean_value>,
      "device_groups":<String_value>,
      "do_cleanup":<Boolean_value>,
      "sdx_ip_address_arr":<String_value>,
      "scheduleId":<String_value>,
      "slack_profile":<String_value>,
      "image_name":<String_value>}]}